package api

import "time"

type AccountReq struct {
	AccountName                string `json:"account_name"`      //必填
	LegalEntityType            string `json:"legal_entity_type"` //必填
	Street                     string `json:"street"`            //必填
	City                       string `json:"city"`              //必填
	PostalCode                 string `json:"postal_code"`
	Country                    string `json:"country"` //必填
	Brand                      string `json:"brand"`
	YourReference              string `json:"your_reference"`
	Status                     string `json:"status"`
	StateOrProvince            string `json:"state_or_province"`
	SpreadTable                string `json:"spread_table"`
	ApiTrading                 string `json:"api_trading"`
	OnlineTrading              string `json:"online_trading"`
	PhoneTrading               string `json:"phone_trading"`
	IdentificationType         string `json:"identification_type"`
	IdentificationValue        string `json:"identification_value"`
	TermsAndConditionsAccepted string `json:"terms_and_conditions_accepted"`
}

type AccountRes struct {
	Id                         string    `json:"id"`
	AccountName                string    `json:"account_name"`
	Brand                      string    `json:"brand"`
	YourReference              string    `json:"your_reference"`
	Status                     string    `json:"status"`
	Street                     string    `json:"street"`
	City                       string    `json:"city"`
	StateOrProvince            string    `json:"state_or_province"`
	Country                    string    `json:"country"`
	PostalCode                 string    `json:"postal_code"`
	SpreadTable                string    `json:"spread_table"`
	LegalEntityType            string    `json:"legal_entity_type"`
	CreatedAt                  time.Time `json:"created_at"`
	UpdatedAt                  time.Time `json:"updated_at"`
	IdentificationType         string    `json:"identification_type"`
	IdentificationValue        string    `json:"identification_value"`
	ShortReference             string    `json:"short_reference"`
	ApiTrading                 bool      `json:"api_trading"`
	OnlineTrading              bool      `json:"online_trading"`
	PhoneTrading               bool      `json:"phone_trading"`
	ProcessThirdPartyFunds     bool      `json:"process_third_party_funds"`
	SettlementType             string    `json:"settlement_type"`
	AgentOrReliance            bool      `json:"agent_or_reliance"`
	TermsAndConditionsAccepted bool      `json:"terms_and_conditions_accepted"`
	BankAccountVerified        string    `json:"bank_account_verified"`
}

type ContactsReq struct {
	AccountId         string `json:"account_id"`    //必填
	FirstName         string `json:"first_name"`    //必填
	LastName          string `json:"last_name"`     //必填
	EmailAddress      string `json:"email_address"` //必填
	PhoneNumber       string `json:"phone_number"`  //必填
	YourReference     string `json:"your_reference"`
	MobilePhoneNumber string `json:"mobile_phone_number"`
	LoginId           string `json:"login_id"`
	Status            string `json:"status"`
	Locale            string `json:"locale"`
	TimeZone          string `json:"time_zone"`
	DateOfBirth       string `json:"date_of_birth"`
}

type ContactsRes struct {
	LoginId           string    `json:"login_id"`
	Id                string    `json:"id"`
	FirstName         string    `json:"first_name"`
	LastName          string    `json:"last_name"`
	AccountId         string    `json:"account_id"`
	AccountName       string    `json:"account_name"`
	Status            string    `json:"status"`
	Locale            string    `json:"locale"`
	Timezone          string    `json:"timezone"`
	EmailAddress      string    `json:"email_address"`
	MobilePhoneNumber string    `json:"mobile_phone_number"`
	PhoneNumber       string    `json:"phone_number"`
	YourReference     string    `json:"your_reference"`
	DateOfBirth       string    `json:"date_of_birth"`
	CreatedAt         time.Time `json:"created_at"`
	UpdatedAt         time.Time `json:"updated_at"`
}
